package com.coffee.order.service.sku.dao;

import com.coffee.order.api.sku.query.UrbanFullReductionQuery;
import com.coffee.order.service.sku.bean.UrbanFullReduction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UrbanFullReductionDao {
	public UrbanFullReduction findById(Integer id);
	
	public UrbanFullReduction findByIdForUpdate(Integer id);
	
	public List<UrbanFullReduction> findByIds(@Param("idList")List<Integer> idList);
	
	public Integer count(@Param("param")UrbanFullReductionQuery param);
	
	public List<UrbanFullReduction> page(@Param("param")UrbanFullReductionQuery param,@Param("offset")Integer offset,@Param("rows")Integer rows);
	
	public UrbanFullReduction findFirst(@Param("param")UrbanFullReductionQuery param);
	
	public Integer insert(UrbanFullReduction param);
	
	Integer insertBatch(List<UrbanFullReduction> list);
	
	public void updateById(@Param("param")UrbanFullReduction param);
	
	public Integer deleteById(@Param("id")Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}